package com.jwthhealth_pub.wristband.sleep.utils;

import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.formatter.IAxisValueFormatter;

/**
 * Created by yang on 17/12/17.
 */
public class SleepValueFormatter implements IAxisValueFormatter
{


    private String appendix;


    @Override
    public String getFormattedValue(float value, AxisBase axis) {
        if(value==40.0){
            appendix = "深睡";
        }else if(value==80.0){
            appendix = "浅睡";
        }else if(value==120.0){
            appendix = "清醒";
        }else{
            appendix = "";
        }

        return appendix;
    }


}
